package com.jxm.a08;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2024-1-11 14:20
 * @Version: 1.0
 */
@Scope("prototype")
@Component
public class BeanPrototype {

    private static final Logger log = LoggerFactory.getLogger(BeanForRequest.class);

    @PreDestroy
    public void destroy() {
        log.debug("prototype destroy");
    }
}
